import request from '@/utils/request'

export default {




  //条件查询课程
  courseCondition(current, limit, searchObj) {
    return request({
      url: `/study/course/query/${current}/${limit}`,
      method: 'post',
      data: searchObj
    })
  },


  //添加课程信息
  saveCourse(course) {
    return request({
      url: `/study/course/save`,
      method: 'post',
      data: course
    })
  },

  //修改课程信息
  updateCourse(course) {
    return request({
      url: 'study/course/update',
      method: "post",
      data: course
    })
  },

  //删除课程信息
  deleteCourse(ids) {
    return request({
      url: 'study/course/delete',
      method: "post",
      data: ids
    })
  },

  //根据id查询课程信息
  getCourseById(courseId) {
    return request({
      url: `/study/course/info/${courseId}`,
      method: "get",
    })
  },



  //根据id查询课程信息
  getCourseInfoById(courseId) {
    return request({
      url: `/study/course/getInfo/${courseId}`,
      method: "get",
    })
  },

   //根据学院id返回课程列表
   getCourseListByCollegeId(collegeId) {
    return request({
      url: `/study/course/getCourseList/${collegeId}`,
      method: "get",
    })
  },


}
